package com.dai.spec.common.enums;

/**
 * 职称类型枚举
 */
public enum ProfessionalTitleType {
    ZHUJIAO("0","助教"),
    JIANGSHI("1","讲师"),
    FUJIAOSHOU("2","副教授"),
    JIAOSHOU("３","教授");

    private String code;
    private String value;

    ProfessionalTitleType(String code, String value) {
        this.code = code;
        this.value = value;
    }

    public String getCode() {
        return code;
    }

    public String getValue() {
        return value;
    }

    public static String getValueByCode(String code) {
        for (ProfessionalTitleType typeEnum : ProfessionalTitleType.values()) {
            if (typeEnum.getCode().equals(code)) {
                return typeEnum.getValue();
            }
        }
        return null;
    }
}
